// register
import register from '../../../scripts/angular/register.js';

// routers
import EquipmentRouter from '../routers/equipment.routers.js';

// services
import EquipmentService from '../services/equipmentService.js';

// controllers
import EquipmentListController from '../controllers/equipmentlist.controller.js';
import EquipmentEditController   from '../controllers/equipmentedit.controller.js';
import EquipmentAddController   from '../controllers/equipmentadd.controller.js';


angular
	.module('equipment.module', [
		'ngAnimate', 
		'ngSanitize', 
		'ui.router',
	    'ngMessages',  
		'chieffancypants.loadingBar', 
		'ngDialog', 
	    'mgcrea.ngStrap', 
		'oc.lazyLoad',
		'ng-sortable'
	])
	.config(EquipmentRouter)
	.controller('EquipmentListController', EquipmentListController)
	.controller('EquipmentEditController', EquipmentEditController)
	.controller('EquipmentAddController', EquipmentAddController)


register('equipment.module')
    .factory('EquipmentService', EquipmentService);